package com.varton.v1;

public class RunnerProxy implements Runnable{
    private Runnable runner;

    public RunnerProxy(Runnable runner) {
        this.runner = runner;
    }

    @Override
    public void run() {
        long start = System.currentTimeMillis();
        runner.run();
        long end = System.currentTimeMillis();
        System.out.println("take time: "+(end-start)+"ms");
    }
}
